package com.intretech.tj.live.service

import jakarta.enterprise.context.ApplicationScoped


@ApplicationScoped
/**
 *  情景拥堵演示服务
 *
 * @author  BuShiTuo 2025/08/19
 */
class LiveCService(val nodeId: Int) {

    private companion object {
        private val PATH_C_1 = intArrayOf(1, 3, 43, 44, 53, 54, 90, 17, 27, 29, 2)
        private val PATH_C_2 = intArrayOf(54, 55, 56, 58, 59, 88, 61, 38, 36, 39, 47, 48, 49, 43, 44, 53)
        private val PATH_C_3 = intArrayOf(
            15, 27, 29, 2, 13, 28, 30, 31, 32, 70, 71, 68, 69, 25, 21, 19, 18
        )
        private val PATH_C_4 = intArrayOf(25, 21, 19, 18, 32, 35, 38, 36, 39, 37, 30, 29, 2, 1, 4, 87, 85, 82, 67, 69)

        private val PATH_C_5 = intArrayOf(
            66, 83, 84, 86, 5, 7, 8, 11, 93, 12, 14, 74, 22, 26, 79, 78
        )

        // 公交车
        private val PATH_C_BUS = intArrayOf(
            46, 48, 49, 43, 44, 53, 54, 90, 17, 14, 74, 77, 75, 81, 80, 76, 78, 66, 83, 84, 86, 5, 3, 43, 44, 45
        )

        // 工程车 C1
        private val ROS_C1_E = intArrayOf(
            10, 61, 9
        )

        // 工程车 C2
        private val ROS_C2_E = intArrayOf(
            10, 28, 9
        )

        // 车辆2 C1
        private val PATH_C1_2 = intArrayOf(
            39, 37, 30, 29, 2, 1, 3, 43, 44, 53
        )

        // 车辆3 C2
        private val PATH_C2_3 = intArrayOf(
            70, 71, 68, 69, 25, 21, 19, 18, 32
        )

    }

    private var runtimeNodeId = -1


    public fun stopLiveA() {
        runtimeNodeId = -1
    }


}